package com.sxpi.course.service.chapterlesson;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxpi.course.pojo.ChapterLesson;
import java.util.List;
import java.util.Map;

/**
 * @Author: 董伟豪
 * @Date: 2022/10/13 14:54
 */
public interface IChapterLessonService extends IService<ChapterLesson> {

    /**
     * 根据课程id查询对应章节的信息
     * @param courseId
     * @return
     */
    List<ChapterLesson> getChapterLessonDetail(Long courseId);

    /**
     * 根据课程id查询对应章节的信息(去除空字段)
     * @param courseId
     * @return
     */
    List<Map<String, Object>> getChapterLessonDetailMap(Long courseId);

}
